﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Stores.VO
{
    [AutoMapFrom(typeof(StoreBalanceRecord))]
    public class StoreBalanceVO : EntityDto
    {
        internal Store InStore { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>
        public int StoreId => InStore.Id;
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string StoreName => InStore.Name;
        /// <summary>
        /// 结算金额
        /// </summary>
        public decimal BalanceAmount { get; set; }
        /// <summary>
        /// 申请状态
        /// </summary>
        public BalanceStatus BalanceStatus { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 审核人姓名
        /// </summary>
        public string ApproveUserName { get; set; }
        /// <summary>
        /// 申请状态名称
        /// </summary>
        public string BalanceStatusView => BalanceStatus.GetDescription();
    }
}
